''''''

# Standard
# Related
import lx
# Local


logger = logging.getLogger('moopy')

_platformservice = lx.Service('platformservice')
_platformservice_query = _platformservice.query

def get_app_build():
    ''''''
    return int(_platformservice_query('appbuild'))

def get_app_name():
    ''''''
    return _platformservice_query('appname')

def get_app_version():
    ''''''
    return int(_platformservice_query('appversion'))

def get_expires_in():
    '''
    @note: This needs to be tested by someone with the trial, to see if
    it can always be converted to an int.
    '''
    logger.warning('This value is not being converted ')
    return _platformservice_query('expiresin')

def get_is_eval():
    ''''''
    if _platformservice_query('iseval') == '1':
        return True
    return False

def get_import_paths():
    ''''''
    return _platformservice_query('importpaths')

def get_is_headless():
    ''''''
    if _platformservice_query('isheadless') == '1':
        return True
    return False

def get_licensed_to():
    ''''''
    return _platformservice_query('licensedto')

def get_num_licenses():
    ''''''
    return int(_platformservice_query('numlicenses'))

def get_os_name():
    ''''''
    return _platformservice_query('osname')

def get_os_type():
    ''''''
    return _platformservice_query('ostype')

def get_os_version():
    ''''''
    return _platformservice_query('osversion')

def get_paths():
    ''''''
    return _platformservice_query('paths')

def get_serial_number():
    ''''''
    return int(_platformservice_query('serialnumber'))